﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Auction
{
    public partial class FormFatherClients : Form
    {
        private List<IObserver> observers { get; set; }
        public List<IObserver> getObservers()
        {
            return observers;
        }
        public FormFatherClients()
        {
            InitializeComponent();
        }

        public virtual void AddObservers(IObserver observer)
        {
            if (observers == null)
            {
                observers = new List<IObserver>();
            }
            observers.Add(observer);
        }
        public virtual void RemoveObserver(IObserver observer)
        {
            observers.Remove(observer);
        }
        public virtual void Notify()
        {
            // Notify the observers by looping through
            // all the registered observers.

          
        }
    }
}
